package com.ssm.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class HpHomecommentExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public HpHomecommentExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andHcidIsNull() {
            addCriterion("hcId is null");
            return (Criteria) this;
        }

        public Criteria andHcidIsNotNull() {
            addCriterion("hcId is not null");
            return (Criteria) this;
        }

        public Criteria andHcidEqualTo(Integer value) {
            addCriterion("hcId =", value, "hcid");
            return (Criteria) this;
        }

        public Criteria andHcidNotEqualTo(Integer value) {
            addCriterion("hcId <>", value, "hcid");
            return (Criteria) this;
        }

        public Criteria andHcidGreaterThan(Integer value) {
            addCriterion("hcId >", value, "hcid");
            return (Criteria) this;
        }

        public Criteria andHcidGreaterThanOrEqualTo(Integer value) {
            addCriterion("hcId >=", value, "hcid");
            return (Criteria) this;
        }

        public Criteria andHcidLessThan(Integer value) {
            addCriterion("hcId <", value, "hcid");
            return (Criteria) this;
        }

        public Criteria andHcidLessThanOrEqualTo(Integer value) {
            addCriterion("hcId <=", value, "hcid");
            return (Criteria) this;
        }

        public Criteria andHcidIn(List<Integer> values) {
            addCriterion("hcId in", values, "hcid");
            return (Criteria) this;
        }

        public Criteria andHcidNotIn(List<Integer> values) {
            addCriterion("hcId not in", values, "hcid");
            return (Criteria) this;
        }

        public Criteria andHcidBetween(Integer value1, Integer value2) {
            addCriterion("hcId between", value1, value2, "hcid");
            return (Criteria) this;
        }

        public Criteria andHcidNotBetween(Integer value1, Integer value2) {
            addCriterion("hcId not between", value1, value2, "hcid");
            return (Criteria) this;
        }

        public Criteria andHctypeIsNull() {
            addCriterion("hcType is null");
            return (Criteria) this;
        }

        public Criteria andHctypeIsNotNull() {
            addCriterion("hcType is not null");
            return (Criteria) this;
        }

        public Criteria andHctypeEqualTo(Integer value) {
            addCriterion("hcType =", value, "hctype");
            return (Criteria) this;
        }

        public Criteria andHctypeNotEqualTo(Integer value) {
            addCriterion("hcType <>", value, "hctype");
            return (Criteria) this;
        }

        public Criteria andHctypeGreaterThan(Integer value) {
            addCriterion("hcType >", value, "hctype");
            return (Criteria) this;
        }

        public Criteria andHctypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("hcType >=", value, "hctype");
            return (Criteria) this;
        }

        public Criteria andHctypeLessThan(Integer value) {
            addCriterion("hcType <", value, "hctype");
            return (Criteria) this;
        }

        public Criteria andHctypeLessThanOrEqualTo(Integer value) {
            addCriterion("hcType <=", value, "hctype");
            return (Criteria) this;
        }

        public Criteria andHctypeIn(List<Integer> values) {
            addCriterion("hcType in", values, "hctype");
            return (Criteria) this;
        }

        public Criteria andHctypeNotIn(List<Integer> values) {
            addCriterion("hcType not in", values, "hctype");
            return (Criteria) this;
        }

        public Criteria andHctypeBetween(Integer value1, Integer value2) {
            addCriterion("hcType between", value1, value2, "hctype");
            return (Criteria) this;
        }

        public Criteria andHctypeNotBetween(Integer value1, Integer value2) {
            addCriterion("hcType not between", value1, value2, "hctype");
            return (Criteria) this;
        }

        public Criteria andHccountIsNull() {
            addCriterion("hcCount is null");
            return (Criteria) this;
        }

        public Criteria andHccountIsNotNull() {
            addCriterion("hcCount is not null");
            return (Criteria) this;
        }

        public Criteria andHccountEqualTo(String value) {
            addCriterion("hcCount =", value, "hccount");
            return (Criteria) this;
        }

        public Criteria andHccountNotEqualTo(String value) {
            addCriterion("hcCount <>", value, "hccount");
            return (Criteria) this;
        }

        public Criteria andHccountGreaterThan(String value) {
            addCriterion("hcCount >", value, "hccount");
            return (Criteria) this;
        }

        public Criteria andHccountGreaterThanOrEqualTo(String value) {
            addCriterion("hcCount >=", value, "hccount");
            return (Criteria) this;
        }

        public Criteria andHccountLessThan(String value) {
            addCriterion("hcCount <", value, "hccount");
            return (Criteria) this;
        }

        public Criteria andHccountLessThanOrEqualTo(String value) {
            addCriterion("hcCount <=", value, "hccount");
            return (Criteria) this;
        }

        public Criteria andHccountLike(String value) {
            addCriterion("hcCount like", value, "hccount");
            return (Criteria) this;
        }

        public Criteria andHccountNotLike(String value) {
            addCriterion("hcCount not like", value, "hccount");
            return (Criteria) this;
        }

        public Criteria andHccountIn(List<String> values) {
            addCriterion("hcCount in", values, "hccount");
            return (Criteria) this;
        }

        public Criteria andHccountNotIn(List<String> values) {
            addCriterion("hcCount not in", values, "hccount");
            return (Criteria) this;
        }

        public Criteria andHccountBetween(String value1, String value2) {
            addCriterion("hcCount between", value1, value2, "hccount");
            return (Criteria) this;
        }

        public Criteria andHccountNotBetween(String value1, String value2) {
            addCriterion("hcCount not between", value1, value2, "hccount");
            return (Criteria) this;
        }

        public Criteria andHomeidIsNull() {
            addCriterion("homeId is null");
            return (Criteria) this;
        }

        public Criteria andHomeidIsNotNull() {
            addCriterion("homeId is not null");
            return (Criteria) this;
        }

        public Criteria andHomeidEqualTo(Integer value) {
            addCriterion("homeId =", value, "homeid");
            return (Criteria) this;
        }

        public Criteria andHomeidNotEqualTo(Integer value) {
            addCriterion("homeId <>", value, "homeid");
            return (Criteria) this;
        }

        public Criteria andHomeidGreaterThan(Integer value) {
            addCriterion("homeId >", value, "homeid");
            return (Criteria) this;
        }

        public Criteria andHomeidGreaterThanOrEqualTo(Integer value) {
            addCriterion("homeId >=", value, "homeid");
            return (Criteria) this;
        }

        public Criteria andHomeidLessThan(Integer value) {
            addCriterion("homeId <", value, "homeid");
            return (Criteria) this;
        }

        public Criteria andHomeidLessThanOrEqualTo(Integer value) {
            addCriterion("homeId <=", value, "homeid");
            return (Criteria) this;
        }

        public Criteria andHomeidIn(List<Integer> values) {
            addCriterion("homeId in", values, "homeid");
            return (Criteria) this;
        }

        public Criteria andHomeidNotIn(List<Integer> values) {
            addCriterion("homeId not in", values, "homeid");
            return (Criteria) this;
        }

        public Criteria andHomeidBetween(Integer value1, Integer value2) {
            addCriterion("homeId between", value1, value2, "homeid");
            return (Criteria) this;
        }

        public Criteria andHomeidNotBetween(Integer value1, Integer value2) {
            addCriterion("homeId not between", value1, value2, "homeid");
            return (Criteria) this;
        }

        public Criteria andZuseridIsNull() {
            addCriterion("zuserId is null");
            return (Criteria) this;
        }

        public Criteria andZuseridIsNotNull() {
            addCriterion("zuserId is not null");
            return (Criteria) this;
        }

        public Criteria andZuseridEqualTo(Integer value) {
            addCriterion("zuserId =", value, "zuserid");
            return (Criteria) this;
        }

        public Criteria andZuseridNotEqualTo(Integer value) {
            addCriterion("zuserId <>", value, "zuserid");
            return (Criteria) this;
        }

        public Criteria andZuseridGreaterThan(Integer value) {
            addCriterion("zuserId >", value, "zuserid");
            return (Criteria) this;
        }

        public Criteria andZuseridGreaterThanOrEqualTo(Integer value) {
            addCriterion("zuserId >=", value, "zuserid");
            return (Criteria) this;
        }

        public Criteria andZuseridLessThan(Integer value) {
            addCriterion("zuserId <", value, "zuserid");
            return (Criteria) this;
        }

        public Criteria andZuseridLessThanOrEqualTo(Integer value) {
            addCriterion("zuserId <=", value, "zuserid");
            return (Criteria) this;
        }

        public Criteria andZuseridIn(List<Integer> values) {
            addCriterion("zuserId in", values, "zuserid");
            return (Criteria) this;
        }

        public Criteria andZuseridNotIn(List<Integer> values) {
            addCriterion("zuserId not in", values, "zuserid");
            return (Criteria) this;
        }

        public Criteria andZuseridBetween(Integer value1, Integer value2) {
            addCriterion("zuserId between", value1, value2, "zuserid");
            return (Criteria) this;
        }

        public Criteria andZuseridNotBetween(Integer value1, Integer value2) {
            addCriterion("zuserId not between", value1, value2, "zuserid");
            return (Criteria) this;
        }

        public Criteria andCommenttimeIsNull() {
            addCriterion("commentTime is null");
            return (Criteria) this;
        }

        public Criteria andCommenttimeIsNotNull() {
            addCriterion("commentTime is not null");
            return (Criteria) this;
        }

        public Criteria andCommenttimeEqualTo(Date value) {
            addCriterion("commentTime =", value, "commenttime");
            return (Criteria) this;
        }

        public Criteria andCommenttimeNotEqualTo(Date value) {
            addCriterion("commentTime <>", value, "commenttime");
            return (Criteria) this;
        }

        public Criteria andCommenttimeGreaterThan(Date value) {
            addCriterion("commentTime >", value, "commenttime");
            return (Criteria) this;
        }

        public Criteria andCommenttimeGreaterThanOrEqualTo(Date value) {
            addCriterion("commentTime >=", value, "commenttime");
            return (Criteria) this;
        }

        public Criteria andCommenttimeLessThan(Date value) {
            addCriterion("commentTime <", value, "commenttime");
            return (Criteria) this;
        }

        public Criteria andCommenttimeLessThanOrEqualTo(Date value) {
            addCriterion("commentTime <=", value, "commenttime");
            return (Criteria) this;
        }

        public Criteria andCommenttimeIn(List<Date> values) {
            addCriterion("commentTime in", values, "commenttime");
            return (Criteria) this;
        }

        public Criteria andCommenttimeNotIn(List<Date> values) {
            addCriterion("commentTime not in", values, "commenttime");
            return (Criteria) this;
        }

        public Criteria andCommenttimeBetween(Date value1, Date value2) {
            addCriterion("commentTime between", value1, value2, "commenttime");
            return (Criteria) this;
        }

        public Criteria andCommenttimeNotBetween(Date value1, Date value2) {
            addCriterion("commentTime not between", value1, value2, "commenttime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}